//
//  DetaTableViewCell.m
//  Koala_Fm
//
//  Created by dllo on 16/1/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DetaTableViewCell.h"

@implementation DetaTableViewCell
- (void)dealloc
{
    [_imag release];
    [_name release];
    [_nimber release];
    [_listenLable release];
    [_lickLable release];
    [_commentLable release];
    [_timeLable release];
    [_termLable release];
    [_imageOne release];
    [_imageTow release];
    [_imageThree release];
    [super dealloc];
    
}



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //
        self.imag = [[UIImageView alloc]init];
//        self.imag.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_imag];
        [_imag release];
        //
        self.name = [[UILabel alloc]init];
//        _name.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_name];
        [_name release];
        //
        self.nimber = [[UILabel alloc]init];
//        _nimber.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_nimber];
        [_nimber release];
        //
        self.listenLable = [[UILabel alloc]init];
//        _listenLable.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_listenLable];
        [_listenLable release];
        //
        self.lickLable = [[UILabel alloc]init];
//        _lickLable.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_lickLable];
        [_lickLable release];
        //
        self.commentLable = [[UILabel alloc]init];
//        self.commentLable.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_commentLable];
        [_commentLable release];
        //
        self.timeLable = [[UILabel alloc]init];
//        _timeLable.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_timeLable];
        [_timeLable release];
        //
        self.termLable = [[UILabel alloc]init];
//        _termLable.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_termLable];
        [_termLable release];
        //
        self.imageOne = [[UIImageView alloc]init];
//        _imageOne.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_imageOne];
        [_imageOne release];
        //
        self.imageTow = [[UIImageView alloc]init];
//        _imageTow.backgroundColor =[UIColor greenColor];
        [self.contentView addSubview:_imageTow];
        [_imageTow release];
        //
        self.imageThree = [[UIImageView alloc]init];
//        _imageThree.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_imageThree];
        [_imageThree release];
        
        
        
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
//    _imag.frame =CGRectMake(0, 0, self.contentView.frame.size.width, 300);
    
    self.nimber.frame = CGRectMake(5, 10, 35, 20);
    self.termLable.frame = CGRectMake(35, 10, 30, 20);
    self.name.frame = CGRectMake(70, 10, 150, 20);
    self.listenLable.frame = CGRectMake(40, 40, 70, 20);//
    self.lickLable.frame = CGRectMake(120, 40, 50, 20);
    self.commentLable.frame = CGRectMake(190, 40, 50, 20);
    self.timeLable.frame = CGRectMake(230, 40, 100, 20);
    self.imageOne.frame = CGRectMake(5, 40, 20, 20);
    self.imageTow.frame = CGRectMake(100, 40, 20, 20);//
    self.imageThree.frame = CGRectMake(160, 40, 20, 20);
    
    
    
    
    
}








- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
